package reference.soft;

import reference.weak.User;

import java.lang.ref.SoftReference;
import java.util.Random;

public class SoftReferenceTest {
    public static void main(String[] args) {
        SoftReference<Object> softReference = new SoftReference<>(new User("steak"));
        System.out.println(softReference.get());
        System.out.println(softReference.get());
    }
}
